# Contributor: rahmanshaber <rahmanshaber@yahoo.com>
# Maintainer: rahmanshaber <rahmanshaber@yahoo.com>
pkgname=paperde
pkgver=0.1.1
pkgrel=0
pkgdesc="A minimalistic Desktop Environment built on top of Qt/Wayland and Wayfire."
# armhf blocked by extra-cmake-modulese
# riscv64 and s390x blocked by polkit
arch="all !armhf !s390x !riscv64"
url="https://gitlab.com/cubocore"
license="GPL-3.0-or-later"
depends="qt5-qtbase-dev libcprime-dev libcsys-dev wayfire wayland-protocols libdbusmenu-qt-dev qt5-qttools-dev qt5-qtsvg-dev qt5-qtwayland-dev upower-dev xdg-desktop-portal cmake ninja"
makedepends="qt5-qtbase-dev extra-cmake-modules"
source="https://gitlab.com/cubocore/paper/paperde/-/archive/v$pkgver/paperde-v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-v$pkgver"
options="!check" # No test suite

build() {
	cmake -B build \
		-GNinja \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DPKGSHAREDPATH=share/paperde \
		-DCMAKE_BUILD_TYPE=None
	cmake --build build
}


package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="45b1fcd8bc03ae34be7560fe8f369d1bde98da764870298a6f31b8465fd0fc24ace556bf7fadeab756dc4d86115aefc7c8d22eb84602472eeb2c60dc1539b85c  paperde-v0.1.1.tar.gz"
